using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Terra.Core.Common.ApiResponse;
using Terra.Data.Models.Identity;

namespace Terra.Service.Identity.Interfaces;

/// <summary>
/// 权限服务接口
/// </summary>
public interface IPermissionService
{
    /// <summary>
    /// 获取用户菜单列表
    /// </summary>
    /// <param name="userId">用户ID</param>
    /// <returns>菜单列表</returns>
    Task<ApiResponse<List<MenuTreeDto>>> GetUserMenusAsync(Guid userId);

    /// <summary>
    /// 获取用户权限码列表
    /// </summary>
    /// <param name="userId">用户ID</param>
    /// <returns>权限码列表</returns>
    Task<ApiResponse<List<string>>> GetUserPermissionCodesAsync(Guid userId);
}